/***************************************** 
 * Desc: UGUI文本Inspector
 * @Author: GSan
 * @Email: 2087653648@qq.com
 * CreateDate: 2020-07-21 15:42:45
*****************************************/

using Common.UGUI.View;
using UnityEditor;

namespace Common.UserEditor.UGUIViewSpace {

	[CustomEditor(typeof(UGUIText))]
	[CanEditMultipleObjects]
	public class UGUITextInspector : Editor {

		public override void OnInspectorGUI() {

			UnityEngine.Object[] objects = targets;
			int len = objects.Length;
			UGUIText[] texts = new UGUIText[len];
			for (int i = 0; i < len; ++i) {
				texts[i] = (UGUIText)objects[i];
			}

			UGUIViewInspector.ShowUGUIView(texts, base.OnInspectorGUI, new UGUIViewOnValueCallback());
		}
	}
}
